package com.zykj.abstractfactory;

import com.zykj.abstractfactory.ny.NYCheesePizza;
import com.zykj.abstractfactory.ny.NYStyleVeggiePizza;

/**
 * @author zhoulj(周利军) [1217102780@qq.com]
 * @Title: NYPizzaStore
 * @Project: ${MODEL_NAME}
 * @Module ID:   <(模块)类编号，可以引用系统设计中的类编号>
 * @Comments: <对此类的描述，可以引用系统设计中的描述>
 * @JDK version used:      <JDK1.8> 42
 * @since 2018/12/27-13:42
 */
public class NYPizzaStore extends PizzaStore{
    @Override
    public Pizza createPizza(String type) {
        if ("cheese".equals(type)) {
            return new NYCheesePizza();
        }else if("veggie".equals(type)){
            return new NYStyleVeggiePizza();
        }
        return null;
    }
}
